//
//  UILabel+Extention.swift
//  sinazd
//
//  Created by apple on 16/3/11.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit
extension UILabel {
    
    
    class func labelWith(text:String,textColor:UIColor,fontSize:CGFloat,alignment:NSTextAlignment = .Center)
   ->UILabel {
        
        let l = UILabel()
        l.text = text
        l.textColor = textColor
        l.font = UIFont.systemFontOfSize(fontSize)
    
        l.textAlignment = alignment
        l.numberOfLines = 0
        l.sizeToFit()
        
        return l
        
        
    }
    
    
}